# $Id: PKGBUILD 88234 2013-04-14 19:48:19Z aginiewicz $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=python2-apptools
pkgver=4.2.0
pkgrel=1
pkgdesc="Application tools"
arch=('any')
url="https://github.com/enthought/apptools"
license=('BSD')
depends=('python2-configobj' 'python2-traitsui')
makedepends=('python2-distribute')
options=(!emptydirs)

source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/apptools/archive/${pkgver}.tar.gz")
md5sums=('7b10c256c248cc0b89f7e1dad47f6972')

build() {
  cd "$srcdir"/apptools-$pkgver

  python2 setup.py build
}

package() {
  cd "$srcdir"/apptools-$pkgver

  python2 setup.py install --root="$pkgdir"/  --optimize=1

  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

